@ECHO OFF
TITLE Generating Documentation...
SET excl=%CD%\Scripts\
SET lstf="_list.txt"
FOR /R %%G IN (*.java) DO (call :append "%%G")
javadoc -classpath ./svnkit.jar -d doc -windowtitle "RSBot" -linkoffline http://java.sun.com/javase/6/docs/api/ http://java.sun.com/javase/6/docs/api/ @%lstf%
DEL /F /Q %lstf%
GOTO :eof

:append
SET gx=%1
SET gx=%gx:\=\\%
ECHO %1 | FIND "%excl%" > nul
IF %ERRORLEVEL% NEQ 0 ECHO %gx% >> %lstf%
GOTO :eof